﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001257 RID: 4695
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StrongChallengeAvatar : IMessage<StrongChallengeAvatar>, IMessage, IEquatable<StrongChallengeAvatar>, IDeepCloneable<StrongChallengeAvatar>, IBufferMessage
	{
		// Token: 0x17003B8F RID: 15247
		// (get) Token: 0x0600D29E RID: 53918 RVA: 0x002379C1 File Offset: 0x00235BC1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StrongChallengeAvatar> Parser
		{
			get
			{
				return StrongChallengeAvatar._parser;
			}
		}

		// Token: 0x17003B90 RID: 15248
		// (get) Token: 0x0600D29F RID: 53919 RVA: 0x002379C8 File Offset: 0x00235BC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StrongChallengeAvatarReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B91 RID: 15249
		// (get) Token: 0x0600D2A0 RID: 53920 RVA: 0x002379DA File Offset: 0x00235BDA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StrongChallengeAvatar.Descriptor;
			}
		}

		// Token: 0x0600D2A1 RID: 53921 RVA: 0x002379E1 File Offset: 0x00235BE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StrongChallengeAvatar()
		{
		}

		// Token: 0x0600D2A2 RID: 53922 RVA: 0x002379E9 File Offset: 0x00235BE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StrongChallengeAvatar(StrongChallengeAvatar other) : this()
		{
			this.avatarType_ = other.avatarType_;
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D2A3 RID: 53923 RVA: 0x00237A1A File Offset: 0x00235C1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StrongChallengeAvatar Clone()
		{
			return new StrongChallengeAvatar(this);
		}

		// Token: 0x17003B92 RID: 15250
		// (get) Token: 0x0600D2A4 RID: 53924 RVA: 0x00237A22 File Offset: 0x00235C22
		// (set) Token: 0x0600D2A5 RID: 53925 RVA: 0x00237A2A File Offset: 0x00235C2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x17003B93 RID: 15251
		// (get) Token: 0x0600D2A6 RID: 53926 RVA: 0x00237A33 File Offset: 0x00235C33
		// (set) Token: 0x0600D2A7 RID: 53927 RVA: 0x00237A3B File Offset: 0x00235C3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600D2A8 RID: 53928 RVA: 0x00237A44 File Offset: 0x00235C44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StrongChallengeAvatar);
		}

		// Token: 0x0600D2A9 RID: 53929 RVA: 0x00237A52 File Offset: 0x00235C52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StrongChallengeAvatar other)
		{
			return other != null && (other == this || (this.AvatarType == other.AvatarType && this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D2AA RID: 53930 RVA: 0x00237A90 File Offset: 0x00235C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D2AB RID: 53931 RVA: 0x00237AEE File Offset: 0x00235CEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D2AC RID: 53932 RVA: 0x00237AF6 File Offset: 0x00235CF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D2AD RID: 53933 RVA: 0x00237B00 File Offset: 0x00235D00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(8);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D2AE RID: 53934 RVA: 0x00237B58 File Offset: 0x00235D58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D2AF RID: 53935 RVA: 0x00237BB0 File Offset: 0x00235DB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StrongChallengeAvatar other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D2B0 RID: 53936 RVA: 0x00237C00 File Offset: 0x00235E00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D2B1 RID: 53937 RVA: 0x00237C0C File Offset: 0x00235E0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 64U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarId = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarType = (AvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04005470 RID: 21616
		private static readonly MessageParser<StrongChallengeAvatar> _parser = new MessageParser<StrongChallengeAvatar>(() => new StrongChallengeAvatar());

		// Token: 0x04005471 RID: 21617
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005472 RID: 21618
		public const int AvatarTypeFieldNumber = 1;

		// Token: 0x04005473 RID: 21619
		private AvatarType avatarType_;

		// Token: 0x04005474 RID: 21620
		public const int AvatarIdFieldNumber = 8;

		// Token: 0x04005475 RID: 21621
		private uint avatarId_;
	}
}
